Skip to content

feat: upgrade @objectstack dependencies to v2.0.0#356

Merged
hotlong merged 2 commits intomainfrom
copilot/upgrade-objectstack-version
Feb 9, 2026
Merged

feat: upgrade @objectstack dependencies to v2.0.0#356
hotlong merged 2 commits intomainfrom
copilot/upgrade-objectstack-version

Conversation

Copy link
Contributor

Copilot AI commented Feb 9, 2026

Upgrades all @objectstack/* packages from v1.1.0 to v2.0.0 across the monorepo and adapts code to breaking changes.

Dependency bumps

  • @objectstack/spec, @objectstack/core, @objectstack/runtime, @objectstack/objectql, @objectstack/cli, @objectstack/plugin-hono-server2.0.0 in 21 package.json files

Breaking change: FieldConfig.sortable now required

@objectstack/spec v2.0.0 adds sortable as a required field on FieldConfig. Fixed in packages/foundation/core/src/util.ts:

fieldConfig = {
    name: column.name,
    type: fieldType,
    label: toTitleCase(column.name),
    required: !column.nullable,
    searchable: false,
+   sortable: false
};

Both the lookup field path and the regular field path in introspectDatabase were updated.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@vercel
Copy link

vercel bot commented Feb 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
objectql Ready Ready Preview, Comment Feb 9, 2026 7:11am

Request Review

- Update all @objectstack/spec, @objectstack/core, @objectstack/runtime,
  @objectstack/objectql, @objectstack/cli, @objectstack/plugin-hono-server
  versions across 21 package.json files
- Add required `sortable` field to FieldConfig objects in core/src/util.ts
  (new required property in @objectstack/spec v2.0.0)

Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copilot AI changed the title [WIP] Upgrade to latest version of Objectstack and adjust code accordingly feat: upgrade @objectstack dependencies to v2.0.0 Feb 9, 2026
Copilot AI requested a review from hotlong February 9, 2026 07:04
@hotlong hotlong marked this pull request as ready for review February 9, 2026 07:29
Copilot AI review requested due to automatic review settings February 9, 2026 07:29
@github-actions
Copy link
Contributor

github-actions bot commented Feb 9, 2026

⚠️ No Changeset Found

This PR does not include a changeset file.
If this PR includes user-facing changes, please add a changeset by running:

pnpm changeset

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Upgrades the monorepo’s external @objectstack/* dependencies from v1.1.0 to v2.0.0 and adapts the codebase to the v2 breaking change that makes FieldConfig.sortable required (starting with the DB introspection output).

Changes:

  • Bump @objectstack/* dependency versions across workspace package.json files and update pnpm-lock.yaml accordingly.
  • Update convertIntrospectedSchemaToObjects to include sortable: false in generated FieldConfig objects (lookup + regular fields).

Reviewed changes

Copilot reviewed 22 out of 23 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
pnpm-lock.yaml Lockfile update reflecting @objectstack v2.0.0 upgrades (and associated transitive changes).
package.json Root dependency bumps for @objectstack/cli, @objectstack/core, and @objectstack/plugin-hono-server.
packages/protocols/odata-v4/package.json Upgrade @objectstack/spec/@objectstack/core to v2.0.0.
packages/protocols/json-rpc/package.json Upgrade @objectstack/spec/@objectstack/core to v2.0.0.
packages/protocols/graphql/package.json Upgrade @objectstack/spec/@objectstack/core to v2.0.0.
packages/foundation/types/package.json Upgrade @objectstack/spec devDependency to v2.0.0.
packages/foundation/plugin-workflow/package.json Upgrade @objectstack/core/@objectstack/spec to v2.0.0.
packages/foundation/plugin-validator/package.json Upgrade @objectstack/core/@objectstack/spec to v2.0.0.
packages/foundation/plugin-security/package.json Upgrade @objectstack/core/@objectstack/spec to v2.0.0.
packages/foundation/plugin-multitenancy/package.json Upgrade @objectstack/core/@objectstack/spec to v2.0.0.
packages/foundation/plugin-formula/package.json Upgrade @objectstack/core/@objectstack/spec to v2.0.0.
packages/foundation/platform-node/package.json Upgrade @objectstack/spec to v2.0.0.
packages/foundation/core/package.json Upgrade @objectstack/core/@objectstack/objectql/@objectstack/runtime/@objectstack/spec to v2.0.0.
packages/foundation/core/src/util.ts Add required sortable field to generated FieldConfig in introspection conversion paths.
packages/drivers/sqlite-wasm/package.json Upgrade @objectstack/spec to v2.0.0.
packages/drivers/sql/package.json Upgrade @objectstack/spec to v2.0.0.
packages/drivers/sdk/package.json Upgrade @objectstack/spec to v2.0.0.
packages/drivers/redis/package.json Upgrade @objectstack/spec to v2.0.0.
packages/drivers/pg-wasm/package.json Upgrade @objectstack/spec to v2.0.0.
packages/drivers/mongo/package.json Upgrade @objectstack/spec to v2.0.0.
packages/drivers/memory/package.json Upgrade @objectstack/spec to v2.0.0.
packages/drivers/fs/package.json Upgrade @objectstack/spec to v2.0.0.
packages/drivers/excel/package.json Upgrade @objectstack/spec to v2.0.0.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

Comment on lines 118 to +122
reference_to: foreignKey.referencedTable,
label: toTitleCase(column.name),
required: !column.nullable,
searchable: false
searchable: false,
sortable: false
Copy link

Copilot AI Feb 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sortable was added here for introspection, but upgrading @objectstack/spec to v2 makes FieldConfig.sortable required everywhere a FieldConfig literal is constructed. There are multiple existing const fieldConfig: FieldConfig = { ... } usages (e.g. in packages/foundation/plugin-validator/test/*.ts) that currently omit sortable, which will break TypeScript compilation and/or spec validation. Please update those FieldConfig literals (or, if the intention is to rely on defaults, adjust the FieldConfig typing/parsing layer so sortable can be omitted safely).

Copilot uses AI. Check for mistakes.
@hotlong hotlong merged commit cbdecfb into main Feb 9, 2026
20 checks passed
@hotlong hotlong deleted the copilot/upgrade-objectstack-version branch February 9, 2026 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants